package cn.isjinhao.se.sql.grammar.statement;

import cn.isjinhao.se.sql.grammar.CurdStatement;
import cn.isjinhao.se.sql.grammar.CurdStatementVisitor;

/**
 * @author 01395265
 * @date 2021/3/3
 */
public class WhereSeg extends CurdStatement {

    private CurdStatement logic;

    public WhereSeg(CurdStatement logic) {
        this.logic = logic;
    }

    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitWhereSeg(this);
    }

    public CurdStatement getLogic() {
        return logic;
    }
}
